from random import uniform
random_float = uniform(0, 1)  # 生成0到1之间的随机浮点数